import Login from "../views/Login.vue";
import layout from "../views/Layout/layout.vue";
import Dashboard from "../views/dashboard/Dashboard.vue";
import User from "../views/user/User.vue";
const routers = [
  {
    path: "/",
    name: "Login",
    component: Login,
  },
  {
    path: "/main",
    component: layout,
    redirect: "/dashboard",
    children: [
      {
        path: "/dashboard",
        name: "Dashboard",
        component: Dashboard,
      },
      {
        path: "/user",
        name: "User",
        component: User,
      },
    ],
  },
];

export default routers;
